package com.boomcat.boomcat.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.boomcat.boomcat.dao.OrderDao;
import com.boomcat.boomcat.domain.Order;
import com.boomcat.boomcat.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
@Autowired
    private OrderDao orderDao;
    @Override
    public void insert(Order order) {
        orderDao.insert(order);
    }

    @Override
    public List<Order> select(Long userId) {
        return orderDao.select(userId);
    }
}
